package me.helllp.dake.iam.core.dao;

import me.helllp.dake.common.exception.DakeEncryptException;
import me.helllp.dake.core.bean.DakeAuthAccount;
import me.helllp.dake.iam.core.bo.AccountBo;
import me.helllp.dake.iam.core.po.DakeAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dake
 * @since 2022-12-05
 */
public interface IDakeAccountService extends IService<DakeAccount> {
    Long creatAccount(AccountBo bo, DakeAuthAccount user) throws UnsupportedEncodingException, DakeEncryptException;

    Boolean modifyAccount(AccountBo bo, DakeAuthAccount user);

    Boolean deleteAccount(Long accountId);
    Boolean checkPassword(DakeAccount account, String password) ;
}
